package name.panitz.ludens.animationGame;
import name.panitz.ludens.util.ShowInFrame;

public class PaintablePanel extends SizedPanel{

  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
Paintable pa;

   public PaintablePanel(Paintable pa){this.pa = pa;}

  public void paintComponent(java.awt.Graphics g){
    pa.paintTo(g);
  }

  public static void main(String [] args){
    ShowInFrame.show
      (new PaintablePanel(new PaintableOval(100,50,30,50))); 
    ShowInFrame.show
      (new PaintablePanel(new PaintableOval(10,10,130,40)));    
  }
}

